<!DOCTYPE html>
<html lang="en">


<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../js/css/bootstrap.min.css">
    <style>
        img {
            width: 40px;
            border-radius: 5px;
        }

        .res {
            position: relative;
        }

        .abs {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
        }
    </style>
</head>


<body>
    <!-- 
    1 面板 panel 
    
   -->
    <div id="main" class="container">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">英雄列表管理</h3>
            </div>
            <div class="panel-body">
                <div class="hero-tool clearfix ">
                    <div class="row">
                        <div class="col-xs-8">
                            <div class="input-group">
                                <input type="text" class="form-control inputForm" placeholder="输入英雄信息">
                                <span class="input-group-btn">
                                    <button class="btn btn-default search" type="button">搜索</button>
                                </span>
                            </div>
                        </div>
                        <div class="col-xs-4">
                            <button id="addHero" class="btn btn-success" data-toggle="modal"
                                data-target="#myModal">添加英雄</button>
                        </div>
                    </div>
                </div>

                <!-- 表格 -->
                <table style="margin-top: 15px;" id="main-tbl" class="table table-bordered">
                    <thead>
                        <tr>
                            <th>编号</th>
                            <th>英雄名称</th>
                            <th>英雄性别</th>
                            <th>头像</th>
                            <th>操作区</th>
                        </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        添加英雄信息
                    </h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <label class="col-sm-2 control-label" for="formGroupInputLarge">英雄名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="hero_name" placeholder="heroName"><br />
                        </div>
                    </div>
                    <div class="row">
                        <label class="col-sm-2 control-label" for="formGroupInputLarge">性别</label>
                        <div class="col-sm-10">
                            <select id="selectGender" class="form-control">
                                <option value="男" selected>男</option>
                                <option value="女">女</option>
                            </select>
                        </div>
                    </div>

                </div>
                <div class="modal-footer">
                    <button type="button" id="closeBtn" class="btn btn-danger" data-dismiss="modal">关闭
                    </button>
                    <button type="button" id="submitBtn" class="btn btn-primary">
                        提交更改
                    </button>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="uploadFile" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
        aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        上传文件
                    </h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <label class="col-sm-2 control-label" for="formGroupInputLarge">上传文件</label>
                        <div class="col-sm-10">
                            <button id="addImgBtn" class="btn btn-warning res" data-id=${item.id}>上传头像
                                <input type="file" class="form-control abs" id="hero_img"></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="../js/jquery-1.12.4.min.js"></script>
    <script src="../js/js/bootstrap.min.js"></script>
    <!-- <script src="../js/index.js"></script> -->
    <script src="../js/handel.js"></script>
</body>

</html>